<?php
	$twitter_username = $_GET['twitter_username'];
	$message = $_GET['message']; 
	$redirect_url = $_GET['redirect_url'];
	
	//compensating
	$message = str_replace("\'","'",$message);
	$message = str_replace("/'","'",$message);
?><form action="/viraltweets/viraltweets.php" method="post">
	<input type="hidden" name="twitter_redirect" value="<?php echo $redirect_url;?>"/>
	<style>
		.viraltweet { padding:8px; width:310px; border:1px solid #CCCCCC; font-family:Courier; font-size:10pt;}
		.vt_input {width:155px;}
		.twitter_message { width:300px; height:60px;}
		.vt_caption { font-family:Arial; font-size:8pt; color:gray; text-align:center;}
		.vt_aff { padding:8px; width:300px; text-align:right; font-family:Arial; font-size:8pt; }
	</style>
	<div class="viraltweet">
		Twitter Username: <input class="vt_input" type="text" name="twitter_username"/><br/>
		Twitter Password: <input class="vt_input" type="password" name="twitter_password"/><br/><br/>
		<textarea class="twitter_message" name="msg_placeholder" disabled="true"><?php echo $message;?></textarea><br/>
		<input type="hidden" name="twitter_message" value="<?php echo $message;?>"/>
		<div align="center"><br/><input type="submit" value="Tweet Now!"/></div>
		<span class="vt_caption">This information is not stored and only one tweet will be sent</span>
	</div>
	<div class="vt_aff">Powered by <a href="http://www.viraltweets.com" target="_blank">Viral Tweets</a></div>
</form>